package com.penghaisoft.microwms.common.base.model;


import com.penghaisoft.microwms.common.BaseEntity;
import com.penghaisoft.microwms.common.util.CommonUtils;

/**
 * @Description 工厂bean
 * @author luoteng
 * @date 2017年5月24日 上午11:27:53
 * @version 1.0
 */
public class BaseFactory extends BaseEntity {

	/**
	 * 工厂主键ID
	 */
	private String factoryId;
	/**
	 * 工厂编码
	 */
	private String factoryCode;
	/**
	 * 工厂名称
	 */
	private String factoryName;
	/**
	 * 工厂类型
	 */
	private String factoryType;
	/**
	 * 是否开启库存 1是 0否
	 */
	private String isOpenStorage;
	/**
	 * 是否开启库存 1是 0否
	 */
	private String isOpenSupply;
	/**
	 * 是否开启质检功能 1是 0否
	 */
	private String isOpenHmqm;
	/**
	 * 事业部编码
	 */
	private String deptCode;
	/**
	 * 集团编号
	 */
	private String groupCode;

	@Override
	public void preInsert() {
		super.preInsert();
		setFactoryId(CommonUtils.getUUID());
	}

	public String getFactoryType() {
		return factoryType;
	}

	public void setFactoryType(String factoryType) {
		this.factoryType = factoryType;
	}

	public String getGroupCode() {
		return groupCode;
	}

	public void setGroupCode(String groupCode) {
		this.groupCode = groupCode;
	}

	public String getFactoryId() {
		return this.factoryId;
	}

	public void setFactoryId(String value) {
		this.factoryId = value;
	}

	public String getFactoryCode() {
		return this.factoryCode;
	}

	public void setFactoryCode(String value) {
		this.factoryCode = value;
	}

	public String getFactoryName() {
		return this.factoryName;
	}

	public void setFactoryName(String value) {
		this.factoryName = value;
	}

	public String getDeptCode() {
		return deptCode;
	}

	public void setDeptCode(String deptCode) {
		this.deptCode = deptCode;
	}
	
	public String getIsOpenStorage() {
		return isOpenStorage;
	}

	public void setIsOpenStorage(String isOpenStorage) {
		this.isOpenStorage = isOpenStorage;
	}

	public String getIsOpenSupply() {
		return isOpenSupply;
	}

	public void setIsOpenSupply(String isOpenSupply) {
		this.isOpenSupply = isOpenSupply;
	}

	public String getIsOpenHmqm() {
		return isOpenHmqm;
	}

	public void setIsOpenHmqm(String isOpenHmqm) {
		this.isOpenHmqm = isOpenHmqm;
	}
	
}
